/*
 * mox_slave.h
 *
 *  Created on: Jun 9, 2010
 *      Author: Jason Monk
 */

#ifndef MOX_SLAVE_H_
#define MOX_SLAVE_H_
#ifndef __XC__
#include <xccompat.h>
#endif

#include "mox.h"
typedef struct mox_slave_state {
#ifndef __XC__
	chanend mast;
	chanend mod[7];
	chanend threads[7];
	struct system_log *log;
#else
	unsigned mast;
	unsigned mod[7];
	unsigned threads[7];
	unsigned log;
#endif

	int active;
	int num_mod;			//modules
	int num_thd;			//applications
	int num_threads;		//threads on core
	int core_id;
	char noresp[14];
	char thd_ids[14];
} mox_slave_state;

#include "mox_slave_c.h"
#include "mox_slave_xc.h"

#endif /* MOX_SLAVE_H_ */
